package com.is.add.model;

/**
 * 待统计订单的原始数据
 * Created by liuming on 2016/5/4.
 */
public class OrderBase {
    private int orderId;            //订单Id
    private int shopId;             //场馆Id
    private String shopCode;        //场馆编号
    private String shopName;        //场馆名称
    private String sales;           //责任业务员(负责人)
    private int cityId;             //城市Id
    private String cityName;        //城市名称
    private int sportsType;         //运动类型
    private String sportsTypeName;  //运动类型名称
    private String orderNumber;     //订单编号
    private int orderNum;           //订单预定量
    private double paySum;          //交易额
    private double fee;             //交易服务费
    private double subsidySum;      //补贴额
    private double subsidyFee;      //补贴服务费
    private String payType;         //支付方式
    private int status;             //订单状态
    private String statusName;      //订单状态名称
    private int settleStatus;       //结算状态
    private String settleStatusName;//结算状态名
    private String orderTime;       //订单时间
    private String examineTime;     //消费时间
    private String useTime;         //验证时间
    private String groupId;         //省份
    private String userName;        //用户名称
    private String userPhone;       //用户电话
    private String exchangeCode;    //验证码
    private String payAccount;      //支付账号
    private String payTime;         //支付时间
    public String getOrderType(){
        if(paySum==0){
            return "免费";
        }
        else if(paySum>0&&subsidySum>0){
            return "优惠";
        }
        else if(paySum>0&&subsidySum==0){
            return "特惠";
        }
        else{
            return "其它";
        }
    }
    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getExamineTime() {
        return examineTime;
    }

    public void setExamineTime(String examineTime) {
        this.examineTime = examineTime;
    }

    public String getUseTime() {
        return useTime;
    }

    public void setUseTime(String useTime) {
        this.useTime = useTime;
    }

    public int getSettleStatus() {
        return settleStatus;
    }

    public void setSettleStatus(int settleStatus) {
        this.settleStatus = settleStatus;
    }

    public String getSettleStatusName() {
        return settleStatusName;
    }

    public void setSettleStatusName(String settleStatusName) {
        this.settleStatusName = settleStatusName;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public String getSales() {
        return sales;
    }

    public void setSales(String sales) {
        this.sales = sales;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public int getSportsType() {
        return sportsType;
    }

    public void setSportsType(int sportsType) {
        this.sportsType = sportsType;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public double getPaySum() {
        return paySum;
    }

    public void setPaySum(double paySum) {
        this.paySum = paySum;
    }

    public double getFee() {
        return fee;
    }

    public void setFee(double fee) {
        this.fee = fee;
    }

    public double getSubsidySum() {
        return this.status==4?0:this.subsidySum;
    }

    public void setSubsidySum(double subsidySum) {
        this.subsidySum = subsidySum;
    }

    public double getSubsidyFee() {
        return subsidyFee;
    }

    public void setSubsidyFee(double subsidyFee) {
        this.subsidyFee = subsidyFee;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getShopCode() {
        return shopCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getSportsTypeName() {
        return sportsTypeName;
    }

    public void setSportsTypeName(String sportsTypeName) {
        this.sportsTypeName = sportsTypeName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getExchangeCode() {
        return exchangeCode;
    }

    public void setExchangeCode(String exchangeCode) {
        this.exchangeCode = exchangeCode;
    }

    public String getPayAccount() {
        return payAccount;
    }

    public void setPayAccount(String payAccount) {
        this.payAccount = payAccount;
    }
}
